package com.qianfeng.xinyihezi.xinyihezi.config;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Tcoy on 2016/11/14.
 */

public interface RetrofitInterface {
    @GET("good/?search_type=0&category=all&app_ver=2.3.0&mac=54%3AA0%3A50%3A65%3A1F%3A5B&unique_id=864394010541607&channel_src=anzhi&from_type=Android")
    Call<ResponseBody> getLeftClassiftJson();

    @GET("good/?search_type=0&app_ver=2.4.0&mac=4A%3ACF%3A5E%3AD2%3A5F%3A21&unique_id=864394010541607&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getDetailJson(@Query("category") String categort);

    @GET("good/?search_type=16&page_size=10&app_ver=2.4.0&mac=AC%3A87%3AA3%3A04%3AF6%3AFD&unique_id=864394010172874&channel_src=yingyongbao&from_type=Android ")
    Call<ResponseBody> getGoodData(@Query("page") int page, @Query("search_key") int search_key);

    @GET("homepage/?search_type=1&app_ver=2.4.0&mac=4A%3ACF%3A5E%3AD2%3A5F%3A21&unique_id=864394010541607&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getTagJsonData();

    @GET("good/?page_size=10&app_ver=2.4.0&mac=4A%3ACF%3A5E%3AD2%3A5F%3A21&unique_id=864394010541607&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getGoodsShowJson(@Query("category") int category, @Query("page") int page, @Query("free_postage") int free_postage, @Query("is_stock") int is_stock, @Query("filter_type") int filter_type, @Query("min_price") int min_price, @Query("max_price") int max_price);

    @GET("good/?page_size=10&page=1&filter_type=0&free_postage=0&is_stock=0&max_price=-1&min_price=0&app_ver=2.4.0&mac=4A%3ACF%3A5E%3AD2%3A5F%3A21&unique_id=864394010541607&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getSearchData(@Query("name") String searchData);
    @GET("good/?app_ver=2.4.0&mac=AC%3A87%3AA3%3A04%3AF6%3AFD&unique_id=864394010172874&channel_src=yingyongbao&from_type=Android")
    Call<ResponseBody> getBuyData(@Query("goodid") String id);
}
